<core:WRAP file="pub/layout.html" placeholder="Content">
<script>
	function OpenDialogCenter(  url,param)
			{
			//	var wcenter = screen.width/2 - fwidth/2;
			//	var hcenter = screen.height/2 - fheight/2;
			//var params = "toolbar=no,left="+wcenter+",top="+hcenter+",width="+fwidth+",height="+fheight;
				//var params = "toolbar=no";
				//params = params + ",titlebar=no";
				if(param)
					window.open(  url, '',param);
				else window.open(  url, '');
			}
</script>
<td class="mini" width="100%" valign="top" align="left" >
	<table border="0" cellpadding="0" cellspacing="0" height="" width="100%" align="left" class="" >
	<tr>
		<td>
			<core:include file="pub/articles/inc.topmenu.html">
		</td>
	</tr>
    <tr>
		<td style="padding-top:5pt;" class="textlogin">{$date_added}</td>
	</tr>
	<tr>
		<td  class="textlogin" style="font-size:16pt;padding-bottom:5pt;"><br>
		<core:optional for="prem"><img src="images/hot.gif" hspace="3"></core:optional>
		<b>{$headline}</b>
		</td>
	</tr>
	<tr>
		<td><hr class='login' size="4"></td>
	</tr>
	<tr>
		<td>
		<table width="100%">
		<tr>
			<td class="textlogin" style="font-sixe:9pt;" valign="top"><b>
			{$firstname} {$lastname} - {$author_title}</b>
			</td>
			<core:optional for="article_author">
			<td width="70" >
				<a href="articles/submit.htm?article_id={$article_id}"><img border="0" width="70" src="images/editstory.gif"></a>
			</td>
			</core:optional>
			<td width="70" >
				<a href="articles/email.htm?id={$article_id}&type=1"><img border="0" width="70" src="images/emailstory.gif"></a>
			</td>
   			<td width="70">
				<a href="javascript:OpenDialogCenter('/{$app_name}/articles/printdetail.htm?id={$article_id}','width=500,scrollbars=yes,menubar=yes')" ><img  border="0" width="70" src="images/printstory.gif"></a>
			</td>
		</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td style="padding-left:8pt;padding-right:8pt;">
		<core:literal>
		<?PHP
			$ds =& $root->_datasource;
			$description=$ds->get('description');
			echo $description;
		?>
		</core:literal>
		</td>
	</tr>
	<core:optional for='ARTbanner_scr'>
	<tr>
		<td align="left" style="padding-left:5pt;"><br>
		<core:literal>
		<?php
			$ARTbanner_scr = $root->get('ARTbanner_scr');
		?>
		<?= $ARTbanner_scr ?>
		</core:literal>
		</td>
	</tr>
	</core:optional>

	<core:optional for='ARTbanner_img'>
	<tr>
		<td align="left"  style="padding-left:5pt;"><br>
			<img src="{$ARTbanner_img}" border="0" />
		</td>
	</tr>
	</core:optional>

	<core:optional for="feedback">
	<tr>
		<td><br><br>
			<a class="topcontmenu" href="javascript:OpenDialogCenter('/{$app_name}/pub.form.php?form_id={$form_id}','width=820,resizable=yes,scrollbars=yes,menubar=yes')" style="padding-left:8pt;font-size:13pt;">
    			Submit your article feedback
    		</a>
		</td>
	</tr>
	<tr>
		<td class="textlogin" style="padding-left:8pt;">
			Clicking this link will open up a popup window where you <br>
			can fill in the form and submit.<br>
			Your opinion will be view by our staff.<br>
		</td>
	</tr>
	</core:optional>
	</table>

</td>

